package com.xgjweb.fsi.service;

import java.util.List;

import com.xgjweb.common.utils.XgjWebLogger;
import com.xgjweb.fsi.domain.Category;
import com.xgjweb.fsi.domain.Journal;
import com.xgjweb.fsi.domain.Revert;

public interface IJournalService {

	/**
	 * 添加日志
	 */
	public Boolean addJournal(Journal journal) throws Exception;

	/**
	 * 修改日志
	 */
	public Boolean updateJournal(Journal journal) throws Exception;

	/**
	 * 删除日志
	 */
	public Boolean deleteJournal(Journal journal) throws Exception;

	/**
	 * 添加类别
	 */
	public Boolean addCategory(Category category) throws Exception;

	/**
	 * 更改类别
	 */
	public Boolean updateCategory(Category category) throws Exception;

	/**
	 * 删除类别
	 */
	public Boolean deleteCategory(Category category) throws Exception;
	/**
	 * 查找类别
	 */
	public Category findCategory(Category category) throws Exception;
	/**
	 * 查找日志
	 */
	public Journal viewJournal(Journal journal) throws Exception;

	/**
	 * 添加评论
	 */
	public Journal addRevert(Revert revert) throws Exception;
	/**
	 * 删除评论
	 */
	public Boolean deleteRevert(Revert revert) throws Exception;

	/**
	 * 得到所有的日志类别
	 */
	public List<Category> getCategorys() throws Exception;

	/**
	 * 分页查找
	 */
	public List<Journal> seletJournalByPage(Journal journal) throws Exception;

	/**
	 * 查找评论
	 */
	public Journal queryRevert(Revert revert) throws Exception;
	/**
	 * 查询日志
	 */
	public List<Category> queryCategory() throws Exception;
	

}
